<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
<!DOCTYPE html>
<html>
<head>
<title><tiles:insertAttribute name="title" /></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet"
	href="<c:url value="/css/niceforms-default.css"/>" type="text/css" />
<link rel="stylesheet" href="<c:url value="/css/style-admin.css"/>"
	type="text/css" />

<script src="<c:url value="/js/jquery.min.js"/>" type="text/javascript"></script>
<script src="<c:url value="/js/ddaccordion.js"/>" type="text/javascript"></script>
<link rel="stylesheet"
	href="<c:url value="/css/jquery-ui-1.9.2.custom.css"/>" type="text/css" />
<script src="<c:url value="/js/jquery-1.8.3.js"/>"
	type="text/javascript"></script>
<script src="<c:url value="/js/jquery-ui-1.9.2.custom.js"/>"></script>
<script type="text/javascript">
	$(function() {
		$(".datepicker").datepicker({
			showOn : "button",
			buttonImage : '<c:url value="/images/calendar.gif"/>',
			buttonImageOnly : true,
			changeMonth : true,
			changeYear : true,
			showAnim : "drop",
			dateFormat : "dd-mm-yy"
		});
	});
</script>

<script type="text/javascript">
	var imagesPath = '<c:url value="/img/"/>';

	ddaccordion
			.init({
				headerclass : "submenuheader", //Shared CSS class name of headers group
				contentclass : "submenu", //Shared CSS class name of contents group
				revealtype : "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
				mouseoverdelay : 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
				collapseprev : true, //Collapse previous content (so only one open at any time)? true/false 
				defaultexpanded : [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
				onemustopen : false, //Specify whether at least one header should be open always (so never all headers closed)
				animatedefault : false, //Should contents open by default be animated into view?
				persiststate : true, //persist state of opened contents within browser session?
				toggleclass : [ "", "" ], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
				togglehtml : [
						"suffix",
						"<img src='<c:url value='/images/plus.gif'/>' class='statusicon' />",
						"<img src='<c:url value='/images/minus.gif'/>' class='statusicon' />" ], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
				animatespeed : "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
				oninit : function(headers, expandedindices) { //custom code to run when headers have initalized
					//do nothing
				},
				onopenclose : function(header, index, state, isuseractivated) { //custom code to run whenever a header is opened or closed
					//do nothing
				}
			});
</script>

<script src="<c:url value="/js/jquery.jclock-1.2.0.js"/>"
	type="text/javascript"></script>
<script src="<c:url value="/js/jconfirmaction.jquery.js"/>"
	type="text/javascript"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$('.ask').jConfirmAction();
	});
</script>
<script type="text/javascript">
	$(function($) {
		$('.jclock').jclock();
	});
</script>

<script src="<c:url value="/js/niceforms.js"/>" type="text/javascript"></script>
<script src="<c:url value="/js/preview-image.js"/>"
	type="text/javascript"></script>
<script src="<c:url value="/js/downloadreport.js"/>"
	type="text/javascript"></script>
</head>
<body>
	<div id="main_container">

		<div class="header">
			<div class="logo">
				<a href="<c:url value="/home"/>"><img
					src="<c:url value="/images/logo.png"/>" alt="" title="" border="0" /></a>
			</div>

			<div class="right_header">
				<spring:message code="welcome" />
				${account.name}, <a href="<c:url value="/logout"/>" class="logout"><spring:message
						code="logout" /></a>
			</div>
			<div class="right_header" style="position: absolute;">
				<a href="?lang=vi">VI</a><a href="?lang=en">EN</a><a href="?lang=fr">FR</a>
			</div>
			<div class="jclock"></div>
		</div>

		<div class="main_content">

			<div class="menu">
				<ul>
					<li><a href="<c:url value="/admin/home"/>"><spring:message
								code="admin.home" /></a></li>
					<li><a href="<c:url value="/admin/support"/>"><spring:message
								code="support" /> <!--[if IE 7]><!--></a> <!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]-->
						<!--[if lte IE 6]></td></tr></table></a><![endif]--></li>
					<li><a href="<c:url value="/admin/report"/>"><spring:message
								code="admin.report" /></a></li>
					<li><a href="<c:url value="/admin/product"/>"><spring:message
								code="manage.product" /> <!--[if IE 7]><!--></a> <!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]-->
						<ul>
							<li><a href="<c:url value="/admin/product"/>" title=""><spring:message
										code="product" /></a></li>
							<li><a href="<c:url value="/admin/producttype"/>" title=""><spring:message
										code="producttype" /></a></li>
							<li><a href="<c:url value="/admin/producer"/>" title=""><spring:message
										code="producer" /></a></li>
						</ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--></li>
					<li><a href="<c:url value="/admin/account"/>"><spring:message
								code="manage.user" /> <!--[if IE 7]><!--></a> <!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]-->
						<!--[if lte IE 6]></td></tr></table></a><![endif]--></li>
					<li><a href="<c:url value="/admin/ads"/>"><spring:message
								code="manage.advertisement" /> <!--[if IE 7]><!--></a> <!--<![endif]-->
						<!--[if lte IE 6]><table><tr><td><![endif]--> <!--[if lte IE 6]></td></tr></table></a><![endif]--></li>
					<li><a href="<c:url value="/admin/setting"/>"><spring:message
								code="manage.setting" /></a></li>
				</ul>
			</div>

			<div class="center_content">
				<div class="right_content">
					<!-- PAGECONTENT HERE -->
					<tiles:insertAttribute name="content" />
					<!-- END PAGECONTENT -->
				</div>
			</div>
			<!--end of center content -->
			<div class="clear"></div>
		</div>
		<!--end of main content-->
		<div class="footer">
			<div class="left_footer">
				IN ADMIN PANEL | Powered by <a href="http://indeziner.com">INDEZINER</a>
			</div>
			<div class="right_footer">
				<a href="http://indeziner.com"><img
					src="<c:url value="/images/indeziner_logo.gif"/>" alt="" title=""
					border="0" /></a>
			</div>
		</div>

	</div>
</body>
</html>
